package com.wangdao.wechatmall.service.admin;

import com.wangdao.wechatmall.bean.bo.admin.CategoryCreateBO;
import com.wangdao.wechatmall.bean.pojo.Category;
import com.wangdao.wechatmall.bean.vo.admin.CategoryVO;
import com.wangdao.wechatmall.bean.vo.admin.L1DataVO;
import com.wangdao.wechatmall.exception.BrandDescException;
import com.wangdao.wechatmall.exception.BrandNameException;

import java.util.List;

/**
 * @author liyongqiang
 * CreateDate 2021/7/9 21:07
 */


public interface CategoryService {
    List<CategoryVO> queryList();

    List<L1DataVO> getL1();

    Category create(CategoryCreateBO categoryCreateBO) throws BrandNameException, BrandDescException;

    int update(CategoryVO categoryVO) throws BrandNameException, BrandDescException;

    int delete(CategoryVO categoryVO);
}
